package cn.dm.service.impl;

import cn.dm.client.RestDmItemTypeClient;
import cn.dm.service.ItemService;
import cn.dm.vo.DmItemTypeVo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;


@Service
@Slf4j
public class ItemServiceImpl implements ItemService{

    @Resource
    private RestDmItemTypeClient restDmItemTypeClient;


    /**
     * 获取所有的商品分类
     *
     * @throws Exception
     * @return
     */
    @Override
    public List<DmItemTypeVo> getClassificationGoodsAll() throws Exception {
        return restDmItemTypeClient.selectTestChildren();
    }
}
